package com.gnerv.sylvanas.deploy.autoconfigure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Gnerv LiGen
 */
@Data
@ComponentScan(value = "com.gnerv.sylvanas.deploy")
@ConfigurationProperties(prefix = "sylvanas.deploy")
public class DeployConfigProperties {

    private static final String DEPLOY_DIR = "deploy";
    private static final String VERSION_DIR = "version";

    private String workDir = System.getProperty("user.dir");
    private String deployDir = getWorkDir() + System.lineSeparator() + DEPLOY_DIR;
    private String versionDir = getWorkDir() + System.lineSeparator() + VERSION_DIR;

}
